package excelpptword2pdf.hsj.demo;

import java.io.File;

import com.aspose.words.SaveFormat;
import excelpptword2pdf.hsj.components.impl.PDF2ExcelConverter;
import excelpptword2pdf.hsj.components.impl.PDF2PPTConverter;
import excelpptword2pdf.hsj.components.impl.Word2ImageConverter;
import excelpptword2pdf.hsj.components.impl.Word2PDFConverter;
import excelpptword2pdf.hsj.interfacedef.PDFConverter;



public class Demo {

	public static void mainRuning() {
		PDFConverter wordConverter = new Word2ImageConverter();
		wordConverter.convert(new File("E:\\ppt_word_pdf\\分布式KV存储的研究和实现.docx"), new File("E:\\ppt_word_pdf\\111v3.pdf"));
		PDFConverter excelConverter = new PDF2ExcelConverter();
		excelConverter.convert(new File("E:\\ppt_word_pdf\\乘云SAAS二期开发评估表V2.0 (2).xlsx"), new File("E:\\ppt_word_pdf\\222v3.pdf"));
		PDFConverter pptConverter = new PDF2PPTConverter();
		pptConverter.convert(new File("E:\\ppt_word_pdf\\清新绿叶PPT.pptx"), new File("E:\\ppt_word_pdf\\333v3.pdf"));
	}
	public static void main(String [] args) {
		
		//word转换为PDF
		Word2PDFConverter wordConverter = new Word2PDFConverter();
		wordConverter.convert(new File("E:\\2.docx"),new File("E:\\2.pdf"));
		}

}
